<div class="order-list-page" ng-if="pagedata.op == 'list'">
    <div class="fui-header">
		<div class="fui-header-left" ng-click="goback()">
            <a class="back"></a>
        </div>
		<div class="title">我报名的活动</div>
		<div class="fui-header-right"></div>
	</div>
	<div id="tab" class="fui-tab fui-tab-danger">
        <a ng-class="{'external active':pagedata.status==10}" href="javascript:" ng-click="pagedata.status=10;tool.get_list('jy_mbaoming/order/list/status=10',true)">全部</a>
        <a ng-class="{'external active':pagedata.status == 0}" href="javascript:" ng-click="pagedata.status=0;tool.get_list('jy_mbaoming/order/list/status=0',true)">待付款</a>
        <a ng-class="{'external active':pagedata.status == 2}" href="javascript:" ng-click="pagedata.status=2;tool.get_list('jy_mbaoming/order/list/status=2',true)">已报名</a>
        <a ng-class="{'external active':pagedata.status == 3}" href="javascript:" ng-click="pagedata.status=3;tool.get_list('jy_mbaoming/order/list/status=3',true)">已取消</a>
        <a ng-class="{'external active':pagedata.status == 4}" href="javascript:" ng-click="pagedata.status=4;tool.get_list('jy_mbaoming/order/list/status=4',true)">已完成</a>
    </div>
	<div class='fui-content order-list' style="margin-top:5rem">
	<div style="padding:0 0.5rem;">
	<div class="fui-list-group order-item" ng-repeat="item in pagedata.list">
                <a class="fui-list external" style="padding: 0.42rem 0.5rem" data-nocache="true">
                    <div class="fui-list-inner">
                        <div class="subtitle"> 报名号: {{item.ordersn}}</div>
                    </div>
                    <div ng-show="item.status==0" class="row-remark text-cancel" style="width: 4rem; font-size: 0.65rem;text-align: right;">待付款</div>
                    <div ng-show="item.status==1" class="row-remark text-cancel" style="width: 4rem; font-size: 0.65rem;text-align: right;">已付款</div>
                    <div ng-show="item.status==2" class="row-remark text-cancel" style="width: 4rem; font-size: 0.65rem;text-align: right;">已报名</div>
                    <div ng-show="item.status==3" class="row-remark text-cancel" style="width: 4rem; font-size: 0.65rem;text-align: right;">已取消</div>
                    <div ng-show="item.status==4" class="row-remark text-cancel" style="width: 4rem; font-size: 0.65rem;text-align: right;">已完成</div>
                    <div class="angle"></div>
                </a> 
                    <a href="" data-nocache="true">
                        <div class="fui-list-group-title lineblock">
                            <i class="icon jinyunicon icon-dianpu"></i> {{item.servename || '报名活动'}}
                        </div>
                    </a>
                    <a href="" class="external" data-nocache="true" ng-click="access_json('jy_mbaoming/order/detail/id='+item.id)">
                        <div class="fui-list goods-list">
                            <div class="fui-list-media" style="">
                                <img class="" ng-src="{{tomedia(item.activity.image) || '../core/resource/images/nopic.jpg'}}">
                            </div>
                            <div class="fui-list-inner">
                                <div class="text goodstitle towline">{{item.activity.title || '活动名称'}}</div>
								<div class="text" style="color:#f60;font-size:0.50rem">活动时间：{{item.activity.time}}</div>
								<div class="text" style="color:#f60;font-size:0.50rem">活动地址：{{item.activity.address}}</div>
                            </div>
                            <div class="fui-list-angle" style="width:4rem" ng-if="item.activity.money>0">
                                ￥<span class="marketprice">{{item.activity.money}}</span></div>
                        </div>
                    </a>
                <div class="fui-list-group-title lineblock">
					<span style="color:#999;font-size:0.55rem"><i class="icon jinyunicon icon-shijian" style="color:#f60;font-size:0.50rem"></i> {{item.createtime}}</span>
                    <span ng-if="item.money>0" class="status noremark"><span></span> 实付: <span class="text-danger">￥{{item.money}}</span></span>
                </div>
            <div class="fui-list-group-title lineblock opblock">
				<span class="status noremark">
					<div ng-show="item.status == 0" class="btn btn-sm btn-default-o order-delete" href="javascript:" ng-click="post({},'del','id='+item.id)">删除报名</div>
					<div ng-show="item.status == 2 && item.money>0" class="btn btn-sm btn-default-o order-delete" href="javascript:" ng-click="access_json('/refund/apply/orderid='+item.id)">申请退款</div>
					<div ng-show="item.status ==5 || item.status ==6" class="btn btn-sm btn-danger-o order-finish" href="javascript:;" ng-click="access_json('/refund/')">查看退款</div>
					<div ng-show="item.status == 0" class="btn btn-sm btn-danger-o order-finish" href="javascript:" ng-click="pay_submit({},'jy_mbaoming/order/pay/id='+item.id,'jy_mbaoming/order/','jy_mbaoming/order/')">支付报名</div>
					<div ng-show="item.status == 2 && item.canreceive==1 && pagedata.setting.is_receive!=1" class="btn btn-sm btn-danger-o order-finish" href="javascript:" ng-click="post({},'receive','id='+item.id)">活动完成请点击</div>
				</span>
            </div>
        </div>
		 </div>
	</div>
	<div class="content-empty" ng-show="pagedata.order_list.length == 0 ">
		  <i class="icon jinyunicon icon-cry" style="width: 6rem;margin-bottom: 0.5rem;"></i><br/><p style="color: #999;font-size: .75rem">您暂时还没有报名过活动！</p>
	</div>
</div>
<div ng-include="sys_html('_footer')"></div>
<div class="order-list-page" ng-if="pagedata.op == 'detail'">
    <div class="fui-header">
		<div class="fui-header-left" ng-click="goback()">
            <a class="back"></a>
        </div>
		<div class="title">报名详情</div>
		<div class="fui-header-right"></div>
	</div>
	<div class='fui-content member-page'>
		<div style="padding:0.5rem;">
		<div class="fui-list-group merchgroup">
			<div class="fui-list jump">
                <a class="fui-list-media">
                    <img class="round" style="width: 2rem; height: 2rem;" src="{{tomedia(pagedata.member.avatar) || '../core/resource/images/nopic.jpg'}}" />
                </a>
                <div class="fui-list-inner">
                    <div class="title">{{pagedata.member.realname || '匿名用户'}}</div>
					<div class="title" style="font-size:0.65rem">昵称：{{pagedata.member.nickname}}</div>
					<div class="title" style="font-size:0.65rem">手机号：{{pagedata.member.mobile}}</div>
                </div>
                <a class="jump" href="javascript:;">
					
				</a>
            </div>
		</div>
		<div class="fui-cell-group" style="margin-top:0">
			<div class="fui-cell">
					<div class="fui-cell-info" style="line-height:1.6">
						<div class="bold"><img src="{{tomedia(pagedata.activity.image) || '../core/resource/images/nopic.jpg'}}" style="width: 1.3rem; height: 1.3rem;"> {{pagedata.activity.title}}</div>
						<div class="gray" style="padding:0 0.3rem;font-size:0.65rem">
						<div>活动地址：<span>{{pagedata.activity.address}}</span> <i class="icon icon-ditu"></i></div>
						<div ng-if="pagedata.activity.organize">活动发起方：<span>{{pagedata.activity.organize}}</span></div>
						<div>活动开始时间：<span>{{pagedata.activity.time}}</span></div>
						<div>报名截止时间：<span>{{pagedata.activity.end}}</span></div>
						<div>报名费用：<span class="red">{{pagedata.activity.money}}元/人</span></div>
						<div>合计报名费用：<span class="red">{{pagedata.order.money}}元</span></div>
						<div>实际支付：<span class="red">{{pagedata.order.pay}}元</span></div>
						</div>
					</div>
			</div>
		</div>
		<div style="margin-top:0.5rem;padding-bottom:2rem">
			<div class="weui_cells_title" style="padding:0 0.6rem;">报名信息：</div>
			<div class="fui-cell-group" ng-repeat="member in pagedata.order.members track by $index" style="margin-top:0">
			<div class="fui-cell">
					<div class="fui-cell-label bold" style="padding-right:0">
						报名人{{$index+1}}.
					</div>
					<div class="fui-cell-info"></div>
			</div>
			<div class="fui-cell" ng-repeat="item in member.diyfields">
					<div class="fui-cell-label">
						<span>{{item.title}}</span>
					</div>
					<div ng-if="item.type == 1 || item.type == 2 || item.type == 6" class="fui-cell-info" ng-model="pagedata.post.package_price">{{item.data}}</div>
					 <div class="weui_cell_ft" ng-if="item.type == 3">
						<ul class="weui_uploader_files">
							 <li class="weui_uploader_file" style="margin-bottom:0;background-image:url({{tomedia(item.data)  || '../core/resource/images/nopic.jpg'}})"></li>
						</ul>
					</div>
					<div ng-if="item.type == 4 || item.type == 5" class="fui-cell-info">
						<span class="jylabel jylabel-f60" ng-repeat="(k,v) in item.data track by $index">{{v}}</span>
					</div>
					<div ng-if="item.type == 7" class="fui-cell-info">
						<span class="jylabel jylabel-f60">{{item.data.province}}</span>
						<span class="jylabel jylabel-f60">{{item.data.city}}</span>
						<span class="jylabel jylabel-f60">{{item.data.district}}</span>
						<span class="jylabel jylabel-f60">{{item.data.street}}</span>
					</div>
			</div>
			</div>
		</div>
		</div>
	</div>
</div>
<div ng-include="sys_html('_footer')"></div>
<script>
scope.tool.get_list('jy_mbaoming/order/list/',true);
scope.pagedata.scroll_bottom=function(){
	scope.tool.get_list('jy_mbaoming/order/list/status='+scope.pagedata.status);
}
</script>